import { createWebHashHistory } from "vue-router"
import { createRouter } from "vue-router"

const routes = [
  {path:'/',redirect:'/home'},
  {path:'/home',component:()=>import("@/views/Home/Home.vue")},
  {path:'/cart',component:()=>import("@/views/Cart/Cart.vue")},
  {path:'/cate',component:()=>import("@/views/Cate/Cate.vue")},
  {path:'/login',component:()=>import("@/views/Login/Login.vue")},
]

const router = createRouter({
  history:createWebHashHistory(),
  routes
})

export default router;